if __name__ == "__main__":
    receivedData ="111SuperMapDetectionTypesStart222SuperMapDetectionTypesEnd333"
    begin = receivedData.find("SuperMapDetectionTypesStart")
    end=receivedData.rfind("SuperMapDetectionTypesEnd")
    ss=receivedData[begin+len("SuperMapDetectionTypesStart"):end]
    print(ss)
    receivedData=receivedData[0:begin]+receivedData[end+len("SuperMapDetectionTypesEnd"):]
    print(receivedData)
